I use
Code:
gcc -W -Wall -ansi -pedantic ...
-W is the same as -Wextra.

I usually stick in -g for debugging information as well.